<%@page pageEncoding="UTF-8" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
request.getAttribute("x");
%>
<html>
	<jsp:include page="../../../webmanager/common/init.jsp"  flush="false"></jsp:include>
	<head>
		<title>年假管理列表信息</title>
        <link rel="stylesheet" href="<%=path%>/css/fixedTable.css" type="text/css" />
        <script type="text/javascript" src="<%=request.getContextPath()%>/javaScript/jquery.js"></script>
        <script type="text/javascript" src="<%=request.getContextPath()%>/javaScript/jquery.fixedheadertable.min.js"></script>
        <script type="text/javascript" src="<%=path%>/javaScript/My97DatePicker/WdatePicker.js"></script>	
		<script type="text/javascript">	
			 $(document).ready(function(){
				    $('#listTable').fixedHeaderTable({altClass: 'odd', themeClass: 'fancyTable', autoShow: false });
				    $('#listTable').fixedHeaderTable('show');
	         });    
			//数据查询;
			function doSearch(action)
			{
				var startTime = document.getElementById("startDate").value;
				var endTime = document.getElementById("endDate").value;
				if(startTime==null || endTime == null){
					alert("请输入查询条件!");
					return;
				}			
				document.forms[0].action = action;
				document.forms[0].submit();
			}
			
			//添加页面跳转方法
			function doAdd()
			{
			    showPage("njglAction!createNjglForm.do",350,600);
			}
			
			//修改操作
			function doRework(){
				if(checkSCount()!=1)
				{
					alert("请选中一条要修改的记录!");
					return;
				}
				var ids = checksValue();
				var idArray = ids.split(",");
				showPage("njglAction!reworkNjglForm.do?zids="+idArray,350,600);
			}
			
			//删除方法
			function doDelete(bmbh,bmmc)
			{   
				var action="njglAction!removeNjgl.do";
				if(checkSCount()<1)
				{
					alert("请选中要删除的记录!");
					return;
				}else if(confirm("确定要删除记录吗?")){
					document.forms[0].action=action;
					document.forms[0].submit();
				}
			}	
			
			//生成功能按钮	
			mpmenu1=new mMenu('','doAdd()','script','<%=path%>/images/img_ht_wz_37.gif','62','24','0','100','2');
			mpmenu2=new mMenu('','doRework()','script','<%=path%>/images/img_ht_wz_39.gif','62','24','0','300','0');
			mpmenu3=new mMenu('','doDelete(\"\",\"\")','script','<%=path%>/images/img_ht_wz_41.gif','62','24','0','20','0');
			mpmenu4=new mMenu('','doSearch(\"njglAction!listNjgl.do\")','script','<%=path%>/images/img_ht_wz_46.gif','62','24','0','300','0');
			<%if (!(request.getAttribute("orderFlag") + "").equals("-1")) {%>
			mpmenu5=new mMenu('','doPaixu(<s:property value="bmxxList.size"/>)','script','<%=path%>/images/img_ht_wz_80.gif','62','24','0','100','2');
			<%}%>
			<s:if test="urlFlag=='delete'">
			   parent.flleft.location.reload();
			</s:if>
	</script>
	</head>
	
	<body>
		<s:form action="" method="post">
			<table cellspacing="0" cellpadding="0" class="main_tab1">
				<tr>
					<td class="">
						<img src="<%=path%>/images/img_ht_wz_28.gif" alt="left" />
					</td>
					<td class="main_tab1_td2">
						<div id="location">
							年假管理
						</div>
						<div id="funbut">
							<SCRIPT>document.write(mwritetodocument());</SCRIPT>
						</div>
					</td>
					<td class="main_tab1_td1">
						<img src="<%=path%>/images/img_ht_wz_32.gif" alt="right" />
					</td>
				</tr>
				<tr>
					<td colspan="3" class="main_tab1_td3">
						<div id="mainbg">
							<div class="jiange10"></div>
							<table width="100%" border="0" cellspacing="0" cellpadding="0"
								class="main_tab3">
								<tr>
									<th width="100">
										<img src="<%=path%>/images/img_ht_wz_58.gif" alt="查询条件" class="img_01">
										查询条件
									</th>
									<td>
										<table width="100%"  border="0" cellspacing="0" cellpadding="0"
											class="main_tab4">
											<tr>
												<td width="15%" align="right">
													用户名：
												</td>
												<td width="85%" align="left">
													<input type="text" id="ryxm" name="ryxm"/>													
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
							<div class="jiange10"></div>
							<div  style="height: 78%; width: 100%; overflow: auto;">
								<table id="listTable" border="0" cellspacing="0" cellpadding="0">
								  <thead>	
									<tr>
										<th>
											全选 <input type="checkbox" id="ids" name="checkbox3" value="1" onclick="selectAll();">
										</th>
										<th>
										     姓名
										</th>
										<th>
										    所属部门
										</th>
										<th>
										    年假天数
										</th>
										<th>
										  	详细
										</th>										
									</tr>
								   </thead>
								   <tbody>										
									<s:iterator value="njglList" status="index" id="njglRyxx">									
										<tr valign="bottom" height="25" ondblclick="showPage('njglAction!showNjgl.do?zids=<s:property  value="id" />',410,480);">
											<td>
												<input type="checkBox" id="id" name="zids" onclick="selectNoAll()" value="<s:property  value='id' />"/>
											</td>
											<td>
												<s:property value="#njglRyxx[1].xm" />
											</td>
											<td>
												<s:property value="#njglRyxx[3].bmmc" />
											</td>
											<td>
												<s:property value="#njglRyxx[0].njts" />
											</td>											
											<td>											       																						
												<a href="#">详细</a>		                                   
											</td>																			
										</tr>
									</s:iterator>
									</tbody>
								</table>
							</div>
							<jsp:include page="../../../webmanager/common/page.jsp">
								<jsp:param value="listDmb.do" name="listAction" />
							</jsp:include>
						</div>
					</td>
				</tr>
				<tr>
					<td class="main_tab1_td4">
						<img src="<%=path%>/images/img_ht_wz_65.gif" alt="left" />
					</td>
					<td class="main_tab1_td5"></td>
					<td class="main_tab1_td4">
						<img src="<%=path%>/images/img_ht_wz_67.gif" alt="right" />
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>